package com.bjsxt.pojo;

import java.util.ArrayList;
import java.util.List;

public class ProviderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProviderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProvideridIsNull() {
            addCriterion("providerid is null");
            return (Criteria) this;
        }

        public Criteria andProvideridIsNotNull() {
            addCriterion("providerid is not null");
            return (Criteria) this;
        }

        public Criteria andProvideridEqualTo(Integer value) {
            addCriterion("providerid =", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotEqualTo(Integer value) {
            addCriterion("providerid <>", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThan(Integer value) {
            addCriterion("providerid >", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThanOrEqualTo(Integer value) {
            addCriterion("providerid >=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThan(Integer value) {
            addCriterion("providerid <", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThanOrEqualTo(Integer value) {
            addCriterion("providerid <=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridIn(List<Integer> values) {
            addCriterion("providerid in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotIn(List<Integer> values) {
            addCriterion("providerid not in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridBetween(Integer value1, Integer value2) {
            addCriterion("providerid between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotBetween(Integer value1, Integer value2) {
            addCriterion("providerid not between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvidernameIsNull() {
            addCriterion("providername is null");
            return (Criteria) this;
        }

        public Criteria andProvidernameIsNotNull() {
            addCriterion("providername is not null");
            return (Criteria) this;
        }

        public Criteria andProvidernameEqualTo(String value) {
            addCriterion("providername =", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameNotEqualTo(String value) {
            addCriterion("providername <>", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameGreaterThan(String value) {
            addCriterion("providername >", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameGreaterThanOrEqualTo(String value) {
            addCriterion("providername >=", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameLessThan(String value) {
            addCriterion("providername <", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameLessThanOrEqualTo(String value) {
            addCriterion("providername <=", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameLike(String value) {
            addCriterion("providername like", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameNotLike(String value) {
            addCriterion("providername not like", value, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameIn(List<String> values) {
            addCriterion("providername in", values, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameNotIn(List<String> values) {
            addCriterion("providername not in", values, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameBetween(String value1, String value2) {
            addCriterion("providername between", value1, value2, "providername");
            return (Criteria) this;
        }

        public Criteria andProvidernameNotBetween(String value1, String value2) {
            addCriterion("providername not between", value1, value2, "providername");
            return (Criteria) this;
        }

        public Criteria andProviderlegalIsNull() {
            addCriterion("providerlegal is null");
            return (Criteria) this;
        }

        public Criteria andProviderlegalIsNotNull() {
            addCriterion("providerlegal is not null");
            return (Criteria) this;
        }

        public Criteria andProviderlegalEqualTo(String value) {
            addCriterion("providerlegal =", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalNotEqualTo(String value) {
            addCriterion("providerlegal <>", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalGreaterThan(String value) {
            addCriterion("providerlegal >", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalGreaterThanOrEqualTo(String value) {
            addCriterion("providerlegal >=", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalLessThan(String value) {
            addCriterion("providerlegal <", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalLessThanOrEqualTo(String value) {
            addCriterion("providerlegal <=", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalLike(String value) {
            addCriterion("providerlegal like", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalNotLike(String value) {
            addCriterion("providerlegal not like", value, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalIn(List<String> values) {
            addCriterion("providerlegal in", values, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalNotIn(List<String> values) {
            addCriterion("providerlegal not in", values, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalBetween(String value1, String value2) {
            addCriterion("providerlegal between", value1, value2, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProviderlegalNotBetween(String value1, String value2) {
            addCriterion("providerlegal not between", value1, value2, "providerlegal");
            return (Criteria) this;
        }

        public Criteria andProvidertelIsNull() {
            addCriterion("providertel is null");
            return (Criteria) this;
        }

        public Criteria andProvidertelIsNotNull() {
            addCriterion("providertel is not null");
            return (Criteria) this;
        }

        public Criteria andProvidertelEqualTo(String value) {
            addCriterion("providertel =", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelNotEqualTo(String value) {
            addCriterion("providertel <>", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelGreaterThan(String value) {
            addCriterion("providertel >", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelGreaterThanOrEqualTo(String value) {
            addCriterion("providertel >=", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelLessThan(String value) {
            addCriterion("providertel <", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelLessThanOrEqualTo(String value) {
            addCriterion("providertel <=", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelLike(String value) {
            addCriterion("providertel like", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelNotLike(String value) {
            addCriterion("providertel not like", value, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelIn(List<String> values) {
            addCriterion("providertel in", values, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelNotIn(List<String> values) {
            addCriterion("providertel not in", values, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelBetween(String value1, String value2) {
            addCriterion("providertel between", value1, value2, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidertelNotBetween(String value1, String value2) {
            addCriterion("providertel not between", value1, value2, "providertel");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueIsNull() {
            addCriterion("providercontinue is null");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueIsNotNull() {
            addCriterion("providercontinue is not null");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueEqualTo(String value) {
            addCriterion("providercontinue =", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueNotEqualTo(String value) {
            addCriterion("providercontinue <>", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueGreaterThan(String value) {
            addCriterion("providercontinue >", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueGreaterThanOrEqualTo(String value) {
            addCriterion("providercontinue >=", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueLessThan(String value) {
            addCriterion("providercontinue <", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueLessThanOrEqualTo(String value) {
            addCriterion("providercontinue <=", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueLike(String value) {
            addCriterion("providercontinue like", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueNotLike(String value) {
            addCriterion("providercontinue not like", value, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueIn(List<String> values) {
            addCriterion("providercontinue in", values, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueNotIn(List<String> values) {
            addCriterion("providercontinue not in", values, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueBetween(String value1, String value2) {
            addCriterion("providercontinue between", value1, value2, "providercontinue");
            return (Criteria) this;
        }

        public Criteria andProvidercontinueNotBetween(String value1, String value2) {
            addCriterion("providercontinue not between", value1, value2, "providercontinue");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}